import NProgress from 'nprogress'
import 'nprogress/nprogress.css'
import React, { useEffect, FC } from 'react'

const LoadingComponent: FC = () => {
  useEffect(() => {
    NProgress.start()
    return () => {
      NProgress.done()
    }
  }, [])

  return <div></div>
}

export default LoadingComponent
